/*访问后台的代码*/
layui.define([], function(exports) {
    var api = {
    	updateRule : function(form, callback) {
            Lib.submitForm("/admin/rule/update.json", form, {}, callback)
        },
        del : function(ids, callback) {
            Common.post("/admin/rule/delete.json", {
                "ids" : ids
            }, function() {
                callback();
            })
        },
        exportRule:function(form,callback){
            var formPara = form.serializeJson();
            Common.post("/admin/rule/excel/export.json", formPara, function(fileId) {
                callback(fileId);
            })
        }

    };

    exports('ruleApi', api);

});